@extends('admin.layout.index')
@section('title','后台问题列表')
@section('header','问题列表')<!-- 视图 -->
@section('con')
<div class="col-lg-12">
    <div class="panel panel-default">
        <div class="panel-heading">
            <a href="/admin/topic/index"><h4><- 返回话题列表:</h4></a>
        </div>
        <!-- /.panel-heading -->
        <div class="panel-body">
            <div class="dataTable_wrapper">
                <div id="dataTables-example_wrapper" class="dataTables_wrapper form-inline dt-bootstrap no-footer">
                    <form action="/admin/topic/index" method="get">
                        <div class="row">
                            <div class="col-sm-6">
                                <div class="dataTables_length" id="dataTables-example_length">
                                    <label>每页
                                        <select name="num" aria-controls="dataTables-example" class="form-control input-sm">
                                            <option value="5">5</option>
                                            <option value="15">15</option>
                                            <option value="30">30</option>
                                            <option value="50">50</option>
                                        </select>条
                                    </label>
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div id="dataTables-example_filter" class="dataTables_filter">
                                    <label>话题:
                                        <input type="search" name="keyword"class="form-control input-sm" placeholder="" aria-controls="dataTables-example" >
                                    </label>
                                    <button class="btn btn-primary" >搜索</button>
                                </div>
                            </div>
                        </div>
                    </form>
                    <div class="row">
                        <div class="col-sm-12">
                            <table class="table table-striped table-bordered table-hover dataTable no-footer" id="dataTables-example" role="grid" aria-describedby="dataTables-example_info">
                                <thead>
                                    <tr role="row">
                                        <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" style="width: 100px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">ID</th>
                                        <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" style="width: 100px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">作者ID</th>
                                        <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" style="width: 100px;" aria-label="Browser: activate to sort column ascending">问题标题:</th>
                                        <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" style="width: 100px;" aria-label="Platform(s): activate to sort column ascending">问题描述</th>
                                        <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" style="width: 100px;" aria-label="Engine version: activate to sort column ascending">提交时间</th>
                                        <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" style="width: 100px;" aria-label="CSS grade: activate to sort column ascending">操作</th></tr>
                                </thead>
                                <tbody>
                                @foreach($data as $k=>$v)

                                    <tr class="gradeA odd" role="row">
                                        <td class="sorting_1">{{$v->id}}</td>
                                        <td>{{$v->uid}}</td>
                                        <td>{{$v->atitle}}</td>
                                        <td>{{$v->content}}</td>
                                        <td>{{date('Y-m-d H:i:s',$v->time)}}</td>
                                        <td class="center" align="center">
                                            <a href="/admin/issue/del?id={{$v->id}}"class="delissue" sid="">删除</a>|
                                            <a href="/admin/issue/update?id={{$v->id}}">审核</a>
                                        </td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                        </div>
                    </div>
                    
                   <div class="row"> 
                      <div class="col-sm-6"> 
                      
                      </div> 
                      <div class="col-sm-6"> 
                        {!! $data->appends($res)->render() !!}
                      </div> 
                     </div>
                </div>
            </div>
            <!-- /.table-responsive -->
            </div>
        <!-- /.panel-body --></div>
    <!-- /.panel --></div>

@endsection
